box-mongo[all].yaml 801 B

12345678910111213141516171819202122232425
  1. scheduler:
  2. # run every day at 6:00 and 18:00 UTC
  3. # 北京时间每天两点
  4. cron: "0 16 */1 * *"
  5. # number of backups to keep locally
  6. retention: 14
  7. # backup operation timeout in minutes
  8. timeout: 60
  9. target:
  10. # mongod IP or host name
  11. host: "box-mongo"
  12. # mongodb port
  13. port: 27017
  14. # mongodb database name, leave blank to backup all databases
  15. database: ""
  16. # leave blank if auth is not enabled
  17. username: "root"
  18. password: "boxcost"
  19. # add custom params to mongodump (eg. Auth or SSL support), leave blank if not needed
  20. params: "--authenticationDatabase admin"
  21. # params: "--ssl --authenticationDatabase admin"
  22. # 对应数据库配置
  23. # mongodb://root:boxcost@box-mongo:27017/box-cost?authSource=admin
  24. # mongodb://root:boxcost@box-mongo:27017/box-user?authSource=admin